//
//  AnnotationView.m
//  唧歪
//
//  Created by ZC on 15/7/22.
//  Copyright (c) 2015年 MWJ. All rights reserved.
//

#import "AnnotationView.h"

@implementation AnnotationView
- (id)initWithAnnotation:(id<MKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithAnnotation:annotation reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        //大头针的图片
        UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 45, 51)];
//        [imageView setImage:[UIImage imageNamed:@"MapAnnotation.png"]];
        [self addSubview:imageView];
    }
    
    return self;
}
- (id)initWithCoordinate:(CLLocationCoordinate2D)coordinate {
    if(self = [super init])
        self.coordinate = coordinate;
    return self;
}
@end
